﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bomb : Object
{
    private Animator anim;
    private Vector3 bombMov = Vector3.left * 0.15f;

    private void Start()
    {
        anim = GetComponent<Animator>();
    }
    public override void Move()
    {
        transform.Translate(bombMov);
    }

    public void Boom()
    {
        anim.SetTrigger("boom");
    }

    public void Disappear()
    {
        Destroy(gameObject);
    }
}
